package cn.smartopen.aispace.status;

public enum ResponseCode {  
    SUCCESS(200, "操作成功"),  
    FAILURE(500, "操作失败"),  
    NO_LOGIN(406, "未登录"),  
    NOT_FOUND(404, "资源未找到"),  
    UNAUTHORIZED(401, "未授权"),  
    FORBIDDEN(403, "禁止访问"),  
    BAD_REQUEST(400, "请求错误"),
    SIGNATURE_ERROR(405, "签名错误"),
    TOKEN_EXPIRED(406, "令牌过期"),
    NO_TOKEN_INFO(407,"无令牌信息"); 
  
    private int code;  
    private String message;  
  
    ResponseCode(int code, String message) {  
        this.code = code;  
        this.message = message;  
    }  
  
    public int getCode() {  
        return code;  
    }  
  
    public String getMessage() {  
        return message;  
    }  
}